package com.jeff.android.lab.architecture.arouter;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.jeff.android.lab.commonlib.router.provider.IDataProvider;

/**
 * @author: duff
 * @date: 2019/3/14
 * @since: 1.0.0
 */

@Route(path = "/provider/data")
public class DataProviderImpl implements IDataProvider {

    private Object mData;

    @Override
    public <T> void setData(T data) {
        mData = data;
    }

    @Override
    public <T> T getData() {
        return (T) mData;
    }

    @Override
    public void init(Context context) {

    }

}
